<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class BusinessIndex extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('business_index', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('type_id')->default(0)->comment('业务ID');
            $table->string('name', 50)->default('')->comment('指标名称');
            $table->timestamps();
            $table->comment = '业务指标名称表';
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('business_index');
    }
}
